package com.example.emos.api.service;

import com.example.emos.api.common.util.PageUtils;
import com.example.emos.api.db.pojo.TbLeave;

import java.util.HashMap;

public interface LeaveService {
    public PageUtils searchLeaveByPage(HashMap param);

    /**
     * 请假申请
     * @param param
     * @return
     */
    public boolean searchContradiction(HashMap param);
    public int insert(TbLeave leave);

    /**
     * 删除请假记录
     * @param param
     * @return
     */
    public int deleteLeaveById(HashMap param);

    /**
     * 生成请假单
     * @param param
     * @return
     */
    public HashMap searchLeaveById(HashMap param);


}
